package org.lanqiao.controller;

import com.sun.prism.impl.BaseContext;
import org.lanqiao.entity.AddressBook;
import org.lanqiao.service.AddressBookService;
import org.lanqiao.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

@RestController
@RequestMapping("/addressBook")
public class AddressBookController {

    @Autowired
    private AddressBookService addressBookService;

    /**
     * 新增地址
     * @param addressBook
     * @return
     */
    public Result<String> saveAddress(@RequestBody AddressBook addressBook){
        //获取当前用户id
        //addressBook.setUserId(BaseContext.getCurrentId());
        return null;
    }
}
